package entity;

import java.io.Serializable;

public class Message implements Serializable  {
    public String sessionId;
    public String fromUser;
    public String content;

    public Message(String sessionId, String fromUser, String content) {
        this.sessionId = sessionId;
        this.fromUser = fromUser;
        this.content = content;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Message{" +
                "聊天室：'" + sessionId + '\'' +
                ", fromUser='" + fromUser + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
